import Vue from "vue";
import Router from 'vue-router'

Vue.use(Router)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: () => import('@/view/HomeView.vue')
    },
    {
        path: '/user',
        name: 'Users',
        component: () => import('@/view/UsersView.vue')
    },
    {
        path: '/test',
        name: 'test',
        component: () => import('@/view/test.vue')
    },
]

const router = new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router